package com.ehome.poct.core.dao.entity.check;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ehome.mybatisplus.autoconfigure.DO;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 检测项目条目指标
 *
 * @author muqiu
 */
@Data
@TableName(value = "n_blood_check_item_indicator")
public class CheckItemIndicatorDO extends DO<CheckItemIndicatorDO> {
    @TableId(value = "check_item_indicator_id")
    private Long checkItemIndicatorId;

    /**
     * 关联检测项目ID
     */
    @TableField(value = "project_item_id")
    private Long projectItemId;

    /**
     * 1：儿童；2：成人男；3：成人女
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 参考下限值
     */
    @TableField(value = "min_value")
    private BigDecimal minValue;

    /**
     * 参考上限值
     */
    @TableField(value = "max_value")
    private BigDecimal maxValue;

    /**
     * 参考范围
     */
    @TableField(value = "reference")
    private String reference;

    /**
     * 警告下限值
     */
    @TableField(value = "min_danger")
    private BigDecimal minDanger;

    /**
     * 警告上限值
     */
    @TableField(value = "max_danger")
    private BigDecimal maxDanger;

    @TableField(exist = false)
    private String simpleName;
}